<template>
	<view>
		<view style="height: 1px;"></view>
		<view class="nav nav1" @click="navGo1">
			<image src="../../static/img/s4.png" mode=""></image>
			<view>工单管理</view>
		</view>
		<view class="nav nav2" @click="navGo2">
			<image src="../../static/img/s5.png" mode=""></image>
			<view>处理中工单</view>
		</view>
		<view class="nav nav3" @click="navGo3">
			<image src="../../static/img/s3.png" mode=""></image>
			<view>历史工单</view>
		</view>
	</view>
</template>

<script>
var jweixin = require('../../components/jweixin-module/index.js');
export default {
	data() {
		return {
			
		};
	},
	onLoad() {
		
	},
	onShow() {
		// uni.setStorageSync('openid', 'omtCc0vHhEXRjva68DmdU4CpmfE8');
		// uni.setStorageSync('nowType', '2');
		// console.log('type=========================》', uni.getStorageSync('nowType'));
		if(!uni.getStorageSync('openid')){
			uni.navigateTo({
				url: '/pages/login/login'
			});
		}
		if(uni.getStorageSync('nowType')!=1 && uni.getStorageSync('nowType')!=2){
			uni.navigateTo({
				url: '/pages/login/login'
			});
		}
	},
	methods: {
		navGo1() {
			if(uni.getStorageSync('nowType')==1){
				uni.navigateTo({
					url: '/pages/manage/manage'
				});
			}else if(uni.getStorageSync('nowType')==2){
				uni.navigateTo({
					url: '/pages/123List/manage/manage'
				});
			}
		},

		navGo2() {
			if(uni.getStorageSync('nowType')==1){
				uni.navigateTo({
					url: '/pages/dispose/dispose'
				});
			}else if(uni.getStorageSync('nowType')==2){
				uni.navigateTo({
					url: '/pages/123List/dispose/dispose'
				});
			}
		},

		navGo3() {
			if(uni.getStorageSync('nowType')==1){
				uni.navigateTo({
					url: '/pages/history/history'
				});
			}else if(uni.getStorageSync('nowType')==2){
				uni.navigateTo({
					url: '/pages/123List/history/history'
				});
			}
		}
	}
};
</script>

<style>
page {
	background: #ffffff;
}
/* 工单 */
.nav {
	display: flex;
	align-items: center;
	margin: 35upx;
	border: 1px solid #e0e0e0;
	padding: 55upx;
	border-radius: 10upx;
}
.nav1 {
	border-left: 8px solid #48e6e6;
}
.nav2 {
	border-left: 8px solid #5790cb;
}
.nav3 {
	border-left: 8px solid #5de648;
}
view {
	font-size: 34upx;
	margin-left: 25upx;
}
image {
	width: 80upx;
	height: 120upx;
}
</style>
